package com.atguigu.springcloud.大批量任务处理.controller;

import com.atguigu.springcloud.大批量任务处理.service.UserService;
import com.atguigu.springcloud.大批量任务处理.service.UserServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XiongJianLin
 * @date Created in 2025/2/10 16:29
 */
@RestController("/user/")
public class UserController {

    @Resource
    private UserService userService;
    /**
     * 从多个微服务获取符合用户信息
     * 昵称、粉丝数量、私信数量
     * @return
     */
    @GetMapping("getUserInfos")
    public String getUserInfo()
    {
        userService.getUserInfos("1");
        return "1";
    }
}
